<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Get extends CI_Controller {

	public function data($year=0,$month=0,$tourId=0,$rand=0)
	{
		if($year==0||$month==0||$tourId==0)
		{
			$this->log('No all data in GET.php->data');
			die();
		}
		$year=(int)$year;
		$month=(int)$month;
		$tourId=(int)$tourId;
		$this->load->model('flash');
		$result=$this->flash->create_xml($year,$month,$tourId);
			$this->load->view('responce',$result);

		//print_r($result);
	}
	public function month($year=0,$month=0,$rand=0)
	{
		if($year==0||$month==0)
		{
			$this->log('No all data in GET.php->month');
			die();
		}
		$year=(int)$year;
		$month=(int)$month;
		$this->load->model('flash');
		$result=$this->flash->month($year,$month);
		$this->load->view('month',$result);

	}

}